package com.aaa.car.controller;

import com.aaa.car.entity.BaseArea;
import com.aaa.car.service.BaseAreaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 统一地区库(BaseArea)表控制层
 *
 * @author makejava
 * @since 2020-11-28 10:31:03
 */
@RestController
@RequestMapping("baseArea")
public class BaseAreaController {
    /**
     * 服务对象
     */
    @Resource
    private BaseAreaService baseAreaService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BaseArea selectOne(Integer id) {
        return this.baseAreaService.queryById(id);
    }

}